home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Collection of Tools & Utilities
/
Collection of Tools and Utilities.iso
/
system
/
danix201.zip
/
PASTE.1
< prev
next >
Wrap
Text File
|
1994-01-16
|
1KB
|
37 lines
PASTE(1) Danix Utilities PASTE(1)
NAME
paste - joins lines of files
SYNOPSIS
paste [ -d<dstring> ] files ...
paste -s [ -d<dstring> ] file
DESCRIPTION
paste joins the lines of the given files, replacing the newlines in
all but the last file with a tab character, by default. If a '-' is
encountered in the file list, standard input is used as one of the
files.
<dstring> is an optional delimiter string from which delimiter
characters are taken. If the delimiter string is exhausted
and there are more files to process, characters are taken
cyclically from the delimiter string. Special characters
like space and tab need to be quoted from the shell. Special
characters recognized are \0 (empty string), \n (newline),
\t (tab), and \\ (backslash).
-d Take delimiter from an alternate delimiter string
-s Merge the lines in the one given file, separated by tabs or the
characters in the given string of delimiters.
EXAMPLES
paste -d" " files ...
join lines of files separating lines by a space
paste -d"abc" files ...
join lines of given files using characters a, b, and
c cyclically until all files have been processed